package o;

import android.os.Handler;
import android.os.Looper;

public abstract class dsn implements czx {
    private c ˊ;

    protected static abstract class c implements Runnable {
        private int ॱ;

        protected abstract void ˋ(boolean z);

        public void run() {
            switch (this.ॱ) {
                case 0:
                    djp.ˎ().ˊ(false);
                    djp.ˎ().ॱ(false);
                    djp.ˎ().ˎ(true);
                    dsm.ˏ().ˎ(true);
                    ˋ(true);
                    return;
                case 1:
                    djp.ˎ().ˎ(false);
                    ˋ(false);
                    return;
                default:
                    return;
            }
        }
    }

    static class d implements Runnable {
        private final String ˊ;

        private d(String str) {
            this.ˊ = str;
        }

        public void run() {
            if (euf.ˎ().ॱ("client_update_red_point_version", "").equals(this.ˊ)) {
                ekr.ॱ(ekp.ˏ, ekr.ˎ);
                eby.ˎ().ˋ(false);
                return;
            }
            ekr.ॱ(ekp.ˏ, ekr.ˋ);
            eby.ˎ().ˋ(true);
        }
    }

    static class e implements Runnable {
        private int ॱ;

        private e(int i) {
            this.ॱ = i;
        }

        public void run() {
            dsm.ˏ().ˋ(this.ॱ);
        }
    }

    public dsn(c cVar) {
        this.ˊ = cVar;
    }

    public void ˎ(int i) {
        this.ˊ.ॱ = 0;
        new Handler(Looper.getMainLooper()).post(this.ˊ);
    }

    public void ˋ() {
        this.ˊ.ॱ = 1;
        new Handler(Looper.getMainLooper()).post(this.ˊ);
    }

    public void ˋ(int i) {
        new Handler(Looper.getMainLooper()).post(new e(i));
    }

    public void ˏ(String str) {
        new Handler(Looper.getMainLooper()).post(new d(str));
    }
}
